package lesson01;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;

public class Demo0107 {
    public static void main(String[] args) throws IOException {
        File file=new File("./TestRead.txt");
        file.createNewFile();
        FileReader fileReader=new FileReader(file);
        while (true){
            int i=fileReader.read();
            if(i==-1)break;
            System.out.println(i);
        }
        fileReader.close();
    }
}
